<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%
	String contextRoot = request.getContextPath();
%>
<f:loadBundle basename="properties.messages" var="msg" />
<f:view>
	<!doctype html>
	<head>
	<%@ include file="include/meta.jsp"%>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>SISDEP : Sistema de Informaci<h:outputText value="#{msg.tilde_o}" />n de Espacio P<h:outputText value="#{msg.tilde_u}" />blico</title>
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="stylesheet" href="<%=contextRoot%>/css/validationEngine.jquery.css" type="text/css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/normalize.css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/uniform.css"> <!-- estilos formularios -->
	<link rel="stylesheet" href="<%=contextRoot%>/css/cuerpo.css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/richCustom.css">	
	</head>
	<body>
	<div id="marco"><!--inicio contenedor -->
	<div class="arriba-cuerpo"></div>
	<!-- Burrada pa ver borde redondo en IE -->
	<div class="cuerpo"><img
		src="<%=contextRoot%>/images/logos.png" />
	<div class="clear"></div>
	<!-- Menu y Usuario init() --> <%@ include
		file="include/menuUsuario.jsp"%> <!-- Menu y Usuario end() -->
	<div class="clear"></div>
	<!-- Formulario -->
	<div id="buscador">
	<h2>Gesti<h:outputText value="#{msg.tilde_o}" />n de Estudio
	Socio Econ<h:outputText value="#{msg.tilde_o}" />mico: <h:outputText
		value="#{estSocioEconomicoController.estSocioEconomico.id ne '' ? 'EDICION' : 'NUEVO'}" /></h2>
	<!-- 
	inclusion de campos de formularios init()
 	-->
 	<div style="position: relative; float: right;">
		<div class="currentStep<h:outputText value="#{estSocioEconomicoController.estSocioEconomicoDetalle.opcion eq '1' ? 'h' : ''}" />">1</div>
		<div class="currentStep<h:outputText value="#{estSocioEconomicoController.estSocioEconomicoDetalle.opcion eq '2' ? 'h' : ''}" />">2</div>
		<div class="currentStep<h:outputText value="#{estSocioEconomicoController.estSocioEconomicoDetalle.opcion eq '3' ? 'h' : ''}" />">3</div>
		<div class="currentStep<h:outputText value="#{estSocioEconomicoController.estSocioEconomicoDetalle.opcion eq '4' ? 'h' : ''}" />">4</div>
		<div class="currentStep<h:outputText value="#{estSocioEconomicoController.estSocioEconomicoDetalle.opcion eq '5' ? 'h' : ''}" />">5</div>
		<div class="currentStep<h:outputText value="#{estSocioEconomicoController.estSocioEconomicoDetalle.opcion eq '6' ? 'h' : ''}" />">6</div>
		<div class="currentStep<h:outputText value="#{estSocioEconomicoController.estSocioEconomicoDetalle.opcion eq '7' ? 'h' : ''}" />">7</div>
	</div><br/><br/>
	<div class="clear"></div>
	<h:form id="updateEstSeguridadSocForm">
		<h:inputHidden id="estSeguridadSoc_id" value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.id}" />
		<h:inputHidden id="estSeguridadSoc_idEstSocioEconomico" value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.idEstSocioEconomico}" />			
		<h3>5. Aspectos de seguridad social</h3>
		<!--
			inclusion de campos entregados por el generador init()
		-->

		<span class="left">
		<label>Pensionado <span class="asterisco">*</span></label>
			<h:selectOneMenu id="estSeguridadSoc_pension" styleClass="validate[required]"
				value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.pension}">
				<f:selectItem itemLabel="Seleccione..." itemValue="" />
				<f:selectItem itemLabel="S#{msg.tilde_i}" itemValue="S" />
				<f:selectItem itemLabel="No" itemValue="N" />
			</h:selectOneMenu>
		</span>
		
		<span class="left" style="margin-left:30px">
			<label>Empresa </label>
			<h:inputText id="estSeguridadSoc_pensionEmpresa" size="40" maxlength="128"  styleClass=""
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.pensionEmpresa}" />
		</span>


		<span class="left" style="margin-left:30px">
			<label>Valor ($) <span class="asterisco">*</span></label>
				<h:inputText id="estSeguridadSoc_pensionValor" size="9" maxlength="9" styleClass="validate[required,custom[integer],maxSize[9]]"
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.pensionValor}" />
		</span>

		<div class="clear" style="width: 400px;"></div>

		<span class="left">
		<label>Jubilaci<h:outputText value="#{msg.tilde_o}" />n <span class="asterisco">*</span></label>
			<h:selectOneMenu id="estSeguridadSoc_jubilacion" styleClass="validate[required]"
				value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.jubilacion}">
				<f:selectItem itemLabel="Seleccione..." itemValue="" />
				<f:selectItem itemLabel="S#{msg.tilde_i}" itemValue="S" />
				<f:selectItem itemLabel="No" itemValue="N" />
			</h:selectOneMenu>
		</span>

		<span class="left" style="margin-left:30px">
		<label>Entidad </label>
			<h:inputText id="estSeguridadSoc_jubilacionEntidad" size="40" maxlength="128"  styleClass=""
				value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.jubilacionEntidad}" />
		</span>

		<span class="left" style="margin-left:30px">
		<label>Valor <span class="asterisco">*</span></label>
				<h:inputText id="estSeguridadSoc_jubilacionValor" size="9" maxlength="9" styleClass="validate[required,custom[integer],maxSize[9]]"
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.jubilacionValor}" />
		</span>

		<div class="clear" style="width: 400px;"></div>
		
		<span class="left" style="margin-left:0px">
		<label>SISBEN <span class="asterisco">*</span></label>
			<h:selectOneMenu id="estSeguridadSoc_sisben" styleClass="validate[required]"
				value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.sisben}">
				<f:selectItem itemLabel="Seleccione..." itemValue="" />
				<f:selectItem itemLabel="S#{msg.tilde_i}" itemValue="S" />
				<f:selectItem itemLabel="No" itemValue="N" />
			</h:selectOneMenu>
		</span>

		<span class="left" style="margin-left:30px">
		<label>Nivel <span class="asterisco">*</span></label>
				<h:inputText id="estSeguridadSoc_sisbenNivel" size="1" maxlength="1" styleClass="validate[required,custom[integer],maxSize[1]]"
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.sisbenNivel}" />
		</span>

		<span class="left" style="margin-left:30px">
		<label>N<h:outputText value="#{msg.tilde_u}" />mero de ficha </label>
			<h:inputText id="estSeguridadSoc_sisbenFicha" size="10" maxlength="10" styleClass="validate[custom[integer],maxSize[10]]"
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.sisbenFicha}" />
		</span>
		
		<span class="left" style="margin-left:30px">
		<label>A.R.S </label>
			<h:inputText id="estSeguridadSoc_sisbenArs" size="10" maxlength="10" styleClass="validate[custom[integer],maxSize[10]]"
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.sisbenArs}" />
		</span>
		
		<div class="clear" style="width: 400px;"></div>

		<span class="left" style="margin-left:0px">
			<label>EPS <span class="asterisco">*</span></label>
			<h:selectOneMenu id="estSeguridadSoc_eps" styleClass="validate[required]"
				value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.eps}">
				<f:selectItem itemLabel="Seleccione..." itemValue="" />
				<f:selectItem itemLabel="S#{msg.tilde_i}" itemValue="S" />
				<f:selectItem itemLabel="No" itemValue="N" />
			</h:selectOneMenu>
		</span>
		
		<span class="left" style="margin-left:30px">
		<label>EPS Vinculaci<h:outputText value="#{msg.tilde_o}" />n <span class="asterisco">*</span></label>
			<h:selectOneMenu id="estSeguridadSoc_epsVinculacion" styleClass="validate[required]"
				value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.epsVinculacion}">
				<f:selectItem itemLabel="Seleccione..." itemValue="" />
				<f:selectItem itemLabel="Cotizante" itemValue="C" />
				<f:selectItem itemLabel="Beneficiario" itemValue="B" />
			</h:selectOneMenu>

		</span>
		
		<span class="left" style="margin-left:30px">
		<label>Entidad </label>
			<h:inputText id="estSeguridadSoc_epsEntidad" size="40" maxlength="128" 
			styleClass=""
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.epsEntidad}" />
		</span>
		
		<div class="clear" style="width: 400px;"></div>
		
		<span class="left" style="margin-left:0px">
		<label>Primer Nombre Cotizante</label>
			<h:inputText id="estSeguridadSoc_cotPrimerNombre" size="40" maxlength="60" styleClass=""
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.cotPrimerNombre}" />
		</span>
		
		
		<span class="left" style="margin-left:30px">
		<label>Segundo Nombre Cotizante </label>
			<h:inputText id="estSeguridadSoc_cotSegundoNombre" size="40" maxlength="60" styleClass=""
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.cotSegundoNombre}" />
		</span>
		
		<div class="clear" style="width: 400px;"></div>
		
		<span class="left" style="margin-left:0px">
		<label>Primer Apellido Cotizante </label>
			<h:inputText id="estSeguridadSoc_cotPrimerApellido" size="40" maxlength="60" styleClass=""
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.cotPrimerApellido}" />
		</span>
		
		<span class="left" style="margin-left:30px">
		<label>Segundo Apellido Cotizante </label>
			<h:inputText id="estSeguridadSoc_cotSegundoApellido" size="40" maxlength="60" styleClass=""
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.cotSegundoApellido}" />
		</span>
		
		<div class="clear" style="width: 400px;"></div>
		
		<span class="left">
		<label>Tipo Identificaci<h:outputText value="#{msg.tilde_o}" />n </label>
			<h:selectOneMenu id="estSeguridadSoc_idTipoIdentificacion" 
					styleClass="" 
					value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.idTipoIdentificacion}">
                            <f:selectItem itemLabel="Seleccione..." itemValue=""/>
					<f:selectItems value="#{masterListCache.identificationTypeList}"/>
			</h:selectOneMenu>
		</span>
		
		<span class="left" style="margin-left: 30px;">
		<label>Identificaci<h:outputText value="#{msg.tilde_o}" />n <span class="asterisco"> </span></label>
				<h:inputText id="estSeguridadSoc_identificacion" size="10" maxlength="10" styleClass="" 
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.identificacion}" />
		</span>
		
		<div class="clear" style="width: 400px;"></div>
		
		<span class="left" style="margin-left:0px">
		<label>Observaci<h:outputText value="#{msg.tilde_o}" />n <span class="asterisco">*</span></label>
			<h:inputTextarea id="estSeguridadSoc_observacion" cols="90" rows="3" styleClass="validate[required,maxSize[128]]" style="width:300px !important; min-width:300px !important; max-width:300px !important; height:60px !important; min-height:60px !important; max-height:60px !important; " 			
						value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.observacion}" />
		</span>
			
		<div class="clear" style="width: 400px;"></div>

		<span class="left" style="margin-left:5px">
		<label>Estado <span class="asterisco">*</span></label>
			<h:selectOneMenu id="estSeguridadSoc_estado"
				styleClass="validate[required]"
				value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.estado}">
				<f:selectItem itemLabel="Pendiente" itemValue="PENDIENTE" />
				<f:selectItem itemLabel="Diligenciado" itemValue="DILIGENCIADO" />
				<f:selectItem itemLabel="Confirmado" itemValue="CONFIRMADO" />
			</h:selectOneMenu>
		</span>
		<br/>
		<br/>
		<br/>
		<div class="clear"></div>
		(<span class="asterisco"> * </span>) : Campo Obligatorio
		<div class="clear"></div>
		<span class="botones right">
		<h:commandButton id="updateEstSeguridadSocButton"
						 styleClass="botonsmall"
		                 type="submit" 
		                 value="Continuar" 
		                 ondblclick="return false;" 
		                 action="#{estSocioEconomicoController.updateDetailEstSeguridadSoc}" >
		</h:commandButton>
		</span>
		<!--
			inclusion de campos entregados por el generador end()
		-->
	</h:form>
	<h:form id="cancelEstSeguridadSocForm">
		<span class="botones left">		
		<h:commandButton
			id="updatePersonaButton" styleClass="botonsmall"
			type="submit" value="Volver" ondblclick="return false;"
			action="#{estSocioEconomicoController.cancelDetailEstSeguridadSoc}">
		</h:commandButton>
		</span>
	</h:form>	
 	</div>
	<!-- Fin formulario -->
	<div class="clear"></div>
	<!-- tabla -->
	<div class="clear" style="width: 400px; margin-left: 0px;"></div>
	<br />
	<span class="botones left"
		style="width: 223px; height: 15px; margin-left: 5px; padding-top: 5px; padding-bottom: 5px; padding-left: 20px; padding-right: 20px; background-color: #006F73; color: white;">
	Informaci<h:outputText value="#{msg.tilde_o}" />n de Auditor<h:outputText
		value="#{msg.tilde_i}" />a </span>
	<div class="clear" style="margin-left: 400px;"></div>
	<div><span class="left"> <span class="left"
		style="width: 110px; height: 15px; margin-left: 5px; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #EDEDED; border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-left: 1px solid #999999; border-right: 1px solid #999999; color: #666666;">Usuario
	Creaci<h:outputText value="#{msg.tilde_o}" />n</span> <span class="left"
		style="width: 110px; height: 15px; margin-left: 0px; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #EDEDED; border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;">Fecha
	Creaci<h:outputText value="#{msg.tilde_o}" />n</span> <span class="left"
		style="width: 170px; height: 15px; margin-left: 0px; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #EDEDED; border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;">Usuario
	<h:outputText value="#{msg.tilde_u}" />ltima Modificaci<h:outputText
		value="#{msg.tilde_o}" />n</span> <span class="left"
		style="width: 170px; height: 15px; margin-left: 0px; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #EDEDED; border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;">Fecha
	<h:outputText value="#{msg.tilde_u}" />ltima Modificaci<h:outputText
		value="#{msg.tilde_o}" />n</span> </span>
	<span class="left"> 
	<span class="left"
		style="width: 110px; height: 15px; margin-left: 5px; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #ffffff; border-top: 0px solid #999999; border-bottom: 1px solid #999999; border-left: 1px solid #999999; border-right: 1px solid #999999; color: #666666;"><h:outputText
		value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.usuarioCrea}" /></span>
	<span class="left"
		style="width: 110px; height: 15px; margin-left: 0px; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #ffffff; border-top: 0px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;"><h:outputText
		value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.fechaCrea}" /></span>
	<span class="left"
		style="width: 170px; height: 15px; margin-left: 0px; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #ffffff; border-top: 0px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;"><h:outputText
		value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.usuarioModifica}" /></span>
	<span class="left"
		style="width: 170px; height: 15px; margin-left: 0px; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #ffffff; border-top: 0px solid #999999; border-bottom: 1px solid #999999; border-left: 0px solid #999999; border-right: 1px solid #999999; color: #666666;"><h:outputText
		value="#{estSocioEconomicoController.estSocioEconomicoDetalle.estSeguridadSoc.fechaModifica}" /></span>
	</span></div>
	<div class="clear"><br />
	</div>
	<div>
	<h:form id="cancelEstSocioEconomicoForm">
		<h:commandButton id="cancelCreateEstSocioEconomicoButton"
			styleClass="botonsmall" type="submit" value="Cancelar"
			ondblclick="return false;"
			action="#{estSocioEconomicoController.cancelEst}">
		</h:commandButton>
	</h:form>
	</div>
	<div id="containerError" style="display:block;">
		<span class="botones left"><h:messages style="font-weight: bold; color: #FF0000;" /></span>
	</div>
	</div>
	<div class="abajo-cuerpo"></div>
	<!-- Burrada pa ver borde redondo en IE --></div>
	<!-- Fin contenedor -->
	<script src="<%=contextRoot%>/js/jquery/lib/jquery-1.7.2.min.js"></script><!-- De ser 1ro -->
	<script src="<%=contextRoot%>/js/script.js" type="text/javascript"></script><!-- De ser 2do -->
	<script src="<%=contextRoot%>/js/jquery/lib/jquery.uniform.min.js"></script> <!-- formularios -->
	<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
	<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine-es.js" type="text/javascript" charset="utf-8"></script>
    <script src="<%=contextRoot%>/js/jquery.maskedinput-1.3.js" type="text/javascript"></script>
	<script type="text/javascript">
        jQ(document).ready(function() {
        	jQ("input, select, input:checkbox, input:radio, input:file").uniform();
        	jQ("#updateEstSeguridadSocForm").validationEngine('attach');
        	jQ("#updateEstSeguridadSocForm").bind("jqv.form.result", 
                	function(event, errorFound) {
        				if(!errorFound){ 
            				displayLoadingImage();
        				}
        			});
        });
    </script>
	<%@ include file="include/validationStatus.jsp" %>
	<%@ include file="include/modalMessageWindow.jsp" %>	
	</body>
	</html>
</f:view>
